﻿@{
    if (Session[Infrastructure.Crosscutting.Comm.Service.ConstService.SessionNameCurrentUser] != null)
    {
        var user = Session[Infrastructure.Crosscutting.Comm.Service.ConstService.SessionNameCurrentUser] as
            Domain.Entity.User;
    <text>欢迎 <strong>@user.UserName</strong>！<a href='/login/off'><font style="font-size: 12px;">退出</font>
    </a></text>
    }
    else
    {
    <a href="/login/">我要登陆</a>
    }
}
